{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发帖用户：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.user_username}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">用户账号：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.user_phone}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">所属琴行：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail['panios']}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8 form-group">
                            <label class="layui-form-label">发布内容：</label>
                            <div class="layui-input-block">
                                <textarea style="width: 625px;height:60px;" disabled>{$detail.h_title}</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发帖时间：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_time}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">点赞数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_likes}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">动态类型：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_type==1 ? '图片' : '视频'}" disabled>
                            </div>
                        </div>
                        {if $detail.h_type==1}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">图片：</label>
                                {if(!empty($detail.h_url))}
                                <div class="input-group col-sm-12">
                                    {volist name='detail.h_url' id='vo'}
                                    <img id="car_images" class="img-circle" width="100px" height="100px" style="float:left;margin-left: 5px;margin-top:5px;cursor:pointer;" src="{$vo}" onclick='imgDisplay(this)'/>
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>
                        {else /}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">视频：</label>
                            <div class="layui-input-block">
                                {if(!empty($detail.h_url))}
                                <video controls="controls" width="200px">
                                    <source src="{$detail.h_url}" type="video/mp4" />
                                    Your browser does not support the video tag.
                                </video>
                                {else /}
                                暂无视频
                                {/if}
                            </div>
                        </div>
                        {/if}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">状态：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{if $detail.h_status==1}待审核{elseif $detail.h_status==2}审核通过{else /}审核拒绝{/if}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
